
HAIFLOW_URL="http://sophon.imlb2c.com/apollo/deploy/JenkinsServerRpc/callback.json"

SOURCE_PATH=${WORKSPACE}

## mall-seller
#cd ${SOURCE_PATH}/mall-seller
#npm i
#mkdir -p ./dist/
#rm -rf ./dist
#npm run build:prod
#scp -r ./dist/* iml@${ssh_server}:/data/workspace/nginx-www/mall-seller/
#
#
## mall-platform
#cd ${SOURCE_PATH}/mall-platform
#npm i
#mkdir -p ./dist/
#rm -rf ./dist
#npm run build:prod
#ssh iml@${ssh_server} rm -rf /data/workspace/nginx-www/mall-platform/*
#scp -r ./dist/* iml@${ssh_server}:/data/workspace/nginx-www/mall-platform/
#
#
## mall-pc
#cd ${SOURCE_PATH}/mall-pc
#npm i
#mkdir -p ./dist/
#rm -rf ./dist
#npm run build
#scp -r ./dist/* iml@${ssh_server}:/data/workspace/nginx-www/mall-pc/


 mall-app
cd ${SOURCE_PATH}/mall-app
npm i
mkdir -p ./dist/
rm -rf ./dist
npm run build:h5
scp -r ./dist/ iml@${ssh_server}:/data/workspace/nginx-www/mall-app/



curl --retry 3 -s  ${HAIFLOW_URL}?uniqueTaskId=${unique_task_id}\&;buildNumber=${BUILD_NUMBER}\&sign=done



